<?php
include("../util/session.php");
require_once ("../config.inc.php");
require_once ("../include/mysql.inc.php");
require_once ("../include/link.inc.php");

$linkDao = new Link();
$id = $_GET['id'];
$row=$linkDao->querybyid($id);
echo $id;
echo $row['name'];
?>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title></title>
	</head>
	<body>
		<?php
			require './inc_header.php';
		?>
		
		<form action="../action/link/modifyLink.php" method="post" >
	
				<input type="submit" value="修改链接"></input><br />
				<input type="hidden" name="id" size="20" value="<?php echo $id?>"></input><br />
				名称：
				<input type="text" name="title" size="20" value="<?php echo $row['name']?>"></input><br />
				地址：
				<input type="text" name="address" size="20" value="<?php echo $row['link'] ?>"></input><br />
			
		</form>
	</body>
</html>